package main

import (
	"sort"
	"strings"
)

func main() {

}
func removeSubfolders(folder []string) (res []string) {
	sort.Strings(folder)
	poi := 0
	res = append(res, folder[poi])
	for i := 1; i < len(folder); i++ {
		if !strings.HasPrefix(folder[i], folder[poi]+"/") {
			res = append(res, folder[i])
			poi = i
		}
	}
	return
}
